package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    public abstract String login(String code);

    public abstract UserInfo getUserInfo();

    public abstract void updateUser(UserInfo userInfo);

    public abstract Map<Long, Integer> userIsPaidTrack(Long albumId, java.util.List<java.lang.Long> trackIds);

    public abstract Boolean isPaidAlbum(Long albumId);

    public abstract List<Long> findUserPaidTrackList(Long albumId);

    public abstract void saveUserPaidRecord(UserPaidRecordVo userPaidRecordVo);

    public abstract void updateVipExpireStatus();
}
